package com.atguigu.spzx.order.vo;

import com.atguigu.spzx.order.entity.OrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(description = "下单入参")
public class OrderInfoSaveReqVo {

    @ApiModelProperty(value = "送货地址id")
    private Long userAddressId;

    @ApiModelProperty(value = "运费")
    private BigDecimal feightFee;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "订单明细")
    private List<OrderInfoSaveInnerOrderItem> orderItemList;

    @Data
    @ApiModel(description = "下单-商品")
    public static class OrderInfoSaveInnerOrderItem extends OrderItem {

    }
}
